import Mock from 'mockjs'
import { baseURL, isMock } from '@/config/index'
import login from './modules/login'

const mocks = [].concat(login)
if (isMock) {
  for (const mock of mocks) {
    Mock.mock(`${baseURL}${mock.url}`, mock.tpl)
  }
}
